package com.sm.dao;

import java.util.List;

import com.sm.model.SecondSort;
import org.apache.ibatis.annotations.Param;

public interface SecondSortMapper {
    int deleteByPrimaryKey(Integer secondSortId);

    int insert(SecondSort record);

    int insertSelective(SecondSort record);

    SecondSort selectByPrimaryKey(Integer secondSortId);

    int updateByPrimaryKeySelective(SecondSort record);

    int updateByPrimaryKey(SecondSort record);
    
    
    /**
     *	通过一级类别id查询到其所有的二级类别
     * @param firstSortId	一级类别id
     * @return
     */
    List<SecondSort> selectAllSecondSort(@Param("firstSortId")Integer firstSortId);
}